package 常用api;

import java.util.Objects;

public class objects {
    public static void main(String[] args) {
        String s1 = new String("hello");
        String s2 = new String("hello");
        System.out.println(s1 == s2);
        System.out.println(Objects.equals(s1, s2));
    }
}
